import store from "../store/index.js";
const beforeEach = (location,navigate)=>{
    if(!store.getState().token && location.pathname !== '/login'){
        navigate('/login')
    }
    console.log('entry',location.pathname)
}
export default beforeEach;
